from typing import Any


class Result:
    def __init__(self, message: str = '', result: Any = None, code: int = 0) -> None:
        self.message: str = message
        self.result: Any = result
        self.code: int = code

    def set_message(self, message: str) -> 'Result':
        self.message = message
        return self

    def set_result(self, result: Any) -> 'Result':
        self.result = result
        return self

    def set_code(self, code: int) -> 'Result':
        self.code = code
        return self
